package com.hisky.cms.article.dao;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;

import com.hisky.basic.dao.BaseDao;
import com.hisky.cms.article.vo.Article;

@Repository
public class ArticleDao extends BaseDao {
	private static Logger logger = Logger.getLogger(ArticleDao.class);

	public int add(Article article) {
		sqlSession.insert("Article.add", article);
		logger.debug("add success..." + article);
		return article.getArticleId();
	}
}
